package com.jlpay.openapi.demo.clearing.withdraw;


import com.jlpay.open.jlpay.sdk.java.model.withdraw.request.WithdrawQueryReq;
import com.jlpay.open.jlpay.sdk.java.model.withdraw.response.WithdrawQueryResp;
import com.jlpay.openapi.demo.JlpayOpenApiService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author zhaomeixia
 * @since 2024/2/20
 */
public class WithdrawQueryService {

    private static final Logger LOGGER = LoggerFactory.getLogger(WithdrawQueryService.class);

    public static void main(String[] args) {
        WithdrawQueryReq withdrawQueryReq = WithdrawQueryReq.builder()
                .outSettleId("1234567890126")
                .merchNo("849584358120016")
                .orgNo("123456")
                .build();
        // 发送请求
        WithdrawQueryResp withdrawQueryResp = JlpayOpenApiService.clearingService()
                .post(withdrawQueryReq, WithdrawQueryResp.class);
        LOGGER.info("提现结果查询响应:{}", withdrawQueryResp);
    }
}
